CGSGDimension Class
A Dimension object
Item Index
Methods
Methods
add
(
public
-
vector
add to this vector, the value passed in parameter
Parameters:
-
vectorCGSGVector2D
divide
(
public
-
vector
divide to this vector, the value passed in parameter
Parameters:
-
vectorCGSGVector2D
getDistance
(
Number
public
-
vector
Compute the euclidian distance between this vector and the one passe in parameter
Parameters:
-
vectorCGSGVector2D
Returns:
multiply
(
public
-
vector
multiply to this vector, the value passed in parameter
Parameters:
-
vectorCGSGVector2D
normalize
()
public
Normalize this vector
resizeBy
(
-
widthFactor -
heightFactor
Multiply current dimension by these new ones
resizeTo
(
-
newWidth -
newHeight
Replace current dimension by these new ones
resizeWith
(
-
width -
height
Increase/decrease current dimension with adding values
substract
(
public
-
vector
substract to this vector, the value passed in parameter
Parameters:
-
vectorCGSGVector2D